const path = require('path')
module.exports = {
  publicPath: './',
  //publicPath: '/login-h5',
  outputDir: 'h5-dist', // 输出文件目录
  productionSourceMap: false, // 是否生产源码map文件
  lintOnSave: false,
  chainWebpack: config => {
    // 设置目录别名
    config.resolve.alias
      .set('@', resolve('src'))
      .set('#',resolve('src/assets'))
      .set('utils',resolve('src/utils'))
      .set('api', resolve('src/api'))
  }
}
function resolve(dir) {
  return path.join(__dirname, dir);
}